package com.project.dao.impl;



import com.project.dao.RolelimitDao;
import com.project.dao.bean.Rolelimit;

public class RolelimitDaoImpl extends BaseDaoImpl implements RolelimitDao {

	@Override
	public void save(Rolelimit rolelimit) throws Exception {
		this.getSqlMapClient().insert("saveRolelimit", rolelimit);
	}

	@Override
	public void delete(Rolelimit rolelimit) throws Exception {
		this.getSqlMapClient().update("deleteRolelimit", rolelimit);
	}

	@Override
	public int findRoleId() throws Exception {
		// TODO Auto-generated method stub
		return (Integer)this.getSqlMapClient().queryForObject("getNewsRoleId");
	}


}
